// iconfont使用
@import '../font/iconfont.css';

// 护士站公共样式
.nurse-station-common {
  font-weight: normal;

  .span-color-block {
    display: inline-block;
    width: 80%;
    height: 20px;
    border-radius: 2px;
    margin-top: 4px;
  }

  .span-color-border {
    display: inline-block;
    width: 22px;
    height: 22px;
    line-height: 20px;
    border-radius: 3px;
    font-weight: normal;
    text-align: center;
    font-size: 12px;
  }

  // 床位
  .bed-item {
    width: 100%;

    .bed-item-header {
      height: 36px;
      border-radius: 2px 2px 0 0;
      color: #fff;
      font-weight: 600;

      .bed-item-keywords-icon {
        background-color: #fff;
      }

      .span-color-border {
        font-weight: normal;
      }

      .bed-item-header-room {
        width: 76px;
      }

      .bed-item-header-name {
        text-align: center;
      }

      .bed-item-header-icon {
        max-width: 76px;
      }
    }

    .bed-item-header,
    .bed-item-footer {
      padding: 0 6px;

      .bed-item-keywords-icon {
        margin-right: 4px;
      }

      .bed-item-keywords-icon:last-child {
        margin-right: 0;
      }
    }

    // 床位图头部icon迷你版
    .bed-item-mini-icon {
      .span-color-border {
        width: 16px;
        height: 16px;
        line-height: 12px;
        border-radius: 2px;
        margin-bottom: 1px;
      }

      .bed-item-keywords-icon {
        margin-right: 2px;
      }
    }

    .bed-item-content {
      width: 100%;
      font-size: 12px;
      border-left: 1px solid #f7f7f7;
      border-right: 1px solid #f7f7f7;

      &>div {
        display: flex;
        align-items: center;
        width: 100%;
      }
    }

    .bed-item-content-icon {
      display: inline-block;
      width: 28px;
      text-align: center;

      i {
        font-size: 14px;
      }
    }

    .bed-item-content-title {
      width: calc(~"100% - 28px");
      line-height: 24px;
    }

    .bed-item-content-first-title {
      line-height: 20px;
    }

    .bed-item-footer {
      height: 32px;
      background-color: #f7f7f7;
    }
  }

  .bed-item-active {
    box-shadow: 0px 2px 10px 2px rgba(0, 0, 0, 0.15);
  }

  // 超出两行 ... 展示
  .two-lines-ellipsis {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .one-lines-ellipsis {
    -webkit-line-clamp: 1;
    line-clamp: 1;
  }
}